package cn.appsys.service.deve;

import java.util.List;

import javax.annotation.Resource;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import cn.appsys.dao.deve.AppInfoMapper;
import cn.appsys.pojo.AppCategory;
import cn.appsys.pojo.AppInfo;
import cn.appsys.pojo.DataDictionary;
@Service("AppInfoService")
public class AppInfoServiceImpl implements AppInfoService {
	@Resource
	private AppInfoMapper appInfoMapper;
	//App信息列查询
	@Override
	public List<AppInfo> queryAppInfoPage(String softwareName, Integer status, Integer flatformId,
			Integer categoryLevel1, Integer categoryLevel2, Integer categoryLevel3, Integer from, Integer pageSize) {
		// TODO Auto-generated method stub
		return appInfoMapper.queryAppInfoPage(softwareName, status, flatformId, categoryLevel1, categoryLevel2, categoryLevel3, from, pageSize);
	}
	//总记录数
	@Override
	public int queryTotalCount(String softwareName, Integer status, Integer flatformId, Integer categoryLevel1,
			Integer categoryLevel2, Integer categoryLevel3) {
		// TODO Auto-generated method stub
		return appInfoMapper.queryTotalCount(softwareName, status, flatformId, categoryLevel1, categoryLevel2, categoryLevel3);
	}
	@Override
	public List<DataDictionary> dataDictionaryStatusList() {
		// TODO Auto-generated method stub
		return appInfoMapper.dataDictionaryStatusList();
	}
	@Override
	public List<DataDictionary> dataDictionaryList(String typeCode) {
		// TODO Auto-generated method stub
		return appInfoMapper.dataDictionaryList(typeCode);
	}
	//app新增
	@Override
	public int addAppInfo(AppInfo appinfo) {
		// TODO Auto-generated method stub
		return appInfoMapper.addAppInfo(appinfo);
	}
	//验证APKName是否唯一
	@Override
	public AppInfo queryAppInfoByAPKName(String APKName) {
		// TODO Auto-generated method stub
		return appInfoMapper.queryAppInfoByAPKName(APKName);
	}
	@Override
	public boolean appinfomodify(AppInfo appInfo) {
		// TODO Auto-generated method stub
		return appInfoMapper.appinfomodify(appInfo);
	}
	@Override
	public AppInfo queryById(Integer id) {
		// TODO Auto-generated method stub
		return appInfoMapper.queryById(id);
	}
	@Override
	public int updateLogoPathById(Integer id) {
		// TODO Auto-generated method stub
		return appInfoMapper.updateLogoPathById(id);
	}

}
